package com.wang.interview.designmode.proxy.JDK;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: wang
 * @date: 2021/8/1 16:50
 * @description:注意： Phone proxy
 */
public class Client {
    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
        Phone proxy = new DynamicProxy().getProxy(XiaoMi.class);
        proxy.call();

        List list = new DynamicProxy().getProxy(ArrayList.class);
        list.add(1);
    }
}
